@import "common";
@fs: 50px;

body {
    min-width: 320px;
    width: 15rem;
    margin: 0 auto;
    line-height: 1.5;
    font-family: Arial, Helvetica;
    background: #F2F2F2;
}

a {
    text-decoration: none;
}

.top {
    display: flex;
    position: fixed;
    top: 0;
    left: 50%;
    background-color: #FFC001;
    transform: translateX(-50%);
    height: (88rem / @fs);
    width: 15rem;
}

.fl {
    // 定位不占据位置，剩余盒子会占满
    width: (44rem / @fs);
    height: (77rem / @fs);
    margin: (11rem / @fs) (25rem / @fs) (7rem / @fs) (24rem / @fs);
}

.fl img {
    width: 100%;
}

.search {
    flex: 1;

    input {
        height: (66rem / @fs);
        width: 100%;
        outline: none;
        border: 0;
        color: #757575;
        box-sizing: border-box;
        border-radius: 33px;
        background-color: #FFF2CC;
        margin-top: (12rem / @fs);
        font-size: (25rem / @fs);
        padding-left: (55rem / @fs);
    }
}

.dr {
    display: block;
    width: (44rem / @fs);
    height: (77rem / @fs);
    margin: (10rem / @fs);
}

.dr img {
    width: 100%;
}

.banner {
    width: 15rem;
    height: (368rem / @fs);

    img {
        width: 100%;
        height: 100%;
    }
}

.nav {
    width: 15rem;

    a {
        display: block;
        float: left;
        width: (150rem / @fs);
        height: (140rem / @fs);
        text-align: center;

        img {
            display: block;
            width: (82rem / @fs);
            height: (82rem / @fs);
            margin: (10rem / @fs) (34rem / @fs) 0;
        }

        span {
            font-size: (25rem / @fs);
            color: #333;
        }
    }
}